Drawing.getSplineBezierControlPoints Method

Gets the control points needed for a Bézier line segment to display a cardinal spline connecting two points with the specified tension.
 
 
Static This method is static.

Parameters

prevX

Type: Number - May be null
The X coordinate of the point preceding the start of the segment, or null if none.
prevY

Type: Number - May be null
The Y coordinate of the point preceding the start of the segment, or null if none.
startX

Type: Number
The X coordinate of the start of the segment.
startY

Type: Number
The Y coordinate of the start of the segment.
endX

Type: Number
The X coordinate of the end of the segment.
endY

Type: Number
The Y coordinate of the end of the segment.
nextX

Type: Number - May be null
The X coordinate of the point following the end of the segment, or null if none.
nextY

Type: Number - May be null
The Y coordinate of the point following the end of the segment, or null if none.
tension

Type: Number
The tension between 0 and 1 where 1 is a straight line segment and 0 forms a Catmull-Rom spline.